using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class UI组件_展示框 : MonoBehaviour
{
    public Text 文本;
    public ScrollRect ScrollRect;

    public void 添加数据(string 数据)
    {
        文本.text += 数据 + "\n";
        ScrollRect.verticalNormalizedPosition = 0;
    }

    public void 清除数据()
    {
        文本.text = "";
        ScrollRect.verticalNormalizedPosition = 0;
    }

    private void Start()
    {
        ScrollRect.verticalNormalizedPosition = 0;
    }
}
